package com.josephxu.tank.strategy;

import java.util.Arrays;
import java.util.Comparator;

/**
 * @Author: Joseph Xu
 * @Date: 2022/1/25 21:22
 */
public class Main {

    public static void main(String[] args) {
        Cat[] a = {new Cat(3,2),new Cat(5,4),new Cat(2,3),new Cat(1,1) };
        Sorter sorter = new Sorter();
        sorter.sort(a,new CatHeightComparator());
        System.out.println(Arrays.toString(a));

    }
}
